package com.ruoyi.zd.mapper;

import java.util.List;
import com.ruoyi.zd.domain.InsurancePaymentRecords;
import org.apache.ibatis.annotations.Param;

/**
 * 保险缴费主记录Mapper接口
 * 
 * @author ruoyi
 * @date 2025-06-06
 */
public interface InsurancePaymentRecordsMapper 
{
    /**
     * 查询保险缴费主记录
     * 
     * @param id 保险缴费主记录主键
     * @return 保险缴费主记录
     */
    public InsurancePaymentRecords selectInsurancePaymentRecordsById(Long id);

    /**
     * 查询保险缴费主记录列表
     * 
     * @param insurancePaymentRecords 保险缴费主记录
     * @return 保险缴费主记录集合
     */
    public List<InsurancePaymentRecords> selectInsurancePaymentRecordsList(InsurancePaymentRecords insurancePaymentRecords);

    /**
     * 新增保险缴费主记录
     * 
     * @param insurancePaymentRecords 保险缴费主记录
     * @return 结果
     */
    public int insertInsurancePaymentRecords(InsurancePaymentRecords insurancePaymentRecords);

    /**
     * 修改保险缴费主记录
     * 
     * @param insurancePaymentRecords 保险缴费主记录
     * @return 结果
     */
    public int updateInsurancePaymentRecords(InsurancePaymentRecords insurancePaymentRecords);

    /**
     * 删除保险缴费主记录
     * 
     * @param id 保险缴费主记录主键
     * @return 结果
     */
    public int deleteInsurancePaymentRecordsById(Long id);

    /**
     * 批量删除保险缴费主记录
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteInsurancePaymentRecordsByIds(Long[] ids);

    int updateEmployeeInsurancePlan(@Param("employeeNumber") String employeeNumber,
                                    @Param("insurancePlanId") Long insurancePlanId);

    InsurancePaymentRecords selectPaymentSums(@Param("paymentMonth") String paymentMonth);


}
